<html>
    <meta charset='utf8'>
    <body>
        <form action="">
            <p>行号：<input type="text" name='id'></p>
            <button>删除</button>
        </form>
    </body> 
</html>

<?php
    $id = $_REQUEST["id"];
    
    if(!$id){
        die();
    }

    echo $id.'</br>';

    $link = mysql_connect("localhost","root","root");
    mysql_select_db(test);
    mysql_query("set names utf8");    

    // 删除："DELETE FROM `表名` WHERE `id`=$id";
    $delsql = "DELETE FROM `userlist` WHERE `id`=$id";
    mysql_query($delsql);


    mysql_close($link);
?>